net.minecraft.src.customstuff.files
Class Recipes

java.lang.Object
  extended by net.minecraft.src.customstuff.files.Recipes

public class Recipes
extends java.lang.Object


Constructor Summary
Recipes()
           
 
Method Summary
 void addRecipe(java.lang.String input)
          Adds a crafting recipe
 void addRecipe(java.lang.String input, java.lang.String func)
          Adds a crafting recipe with a script that is called when this recipe is used
 void addRecipe(java.lang.String input, java.lang.String script, java.lang.String craftingname)
          Adds a crafting recipe for a specific crafting table with a script
 void addShapelessRecipe(java.lang.String input)
          Adds a shapeless crafting recipe
 void addShapelessRecipe(java.lang.String input, java.lang.String func)
          Adds a shapeless crafting recipe with a script that is called when this recipe is used
 void addShapelessRecipe(java.lang.String input, java.lang.String func, java.lang.String craftingname)
          Adds a shapeless crafting recipe for a specific crafting table with a script
static void LoadRecipes(java.lang.String dirPath)
          DO NOT USE THIS!
 void removeRecipe(java.lang.String input)
          Removes a crafting recipe
 void removeRecipe(java.lang.String input, java.lang.String craftingname)
          Removes a crafting recipe from a specific crafting table
 void removeShapelessRecipe(java.lang.String input)
          Removes a shapeless recipe
 void removeShapelessRecipe(java.lang.String input, java.lang.String craftingname)
          Removes a shapeless recipe from a specific craftingname
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recipes

public Recipes()
Method Detail

LoadRecipes

public static void LoadRecipes(java.lang.String dirPath)
                        throws java.io.IOException,
                               javax.script.ScriptException,
                               net.minecraft.src.customstuff.CustomStuffException
DO NOT USE THIS!

Throws:
java.io.IOException
javax.script.ScriptException
net.minecraft.src.customstuff.CustomStuffException

addRecipe

public void addRecipe(java.lang.String input)
               throws net.minecraft.src.customstuff.CustomStuffException
Adds a crafting recipe

Parameters:
input - The crafting recipe
Throws:
net.minecraft.src.customstuff.CustomStuffException

addRecipe

public void addRecipe(java.lang.String input,
                      java.lang.String func)
               throws net.minecraft.src.customstuff.CustomStuffException
Adds a crafting recipe with a script that is called when this recipe is used

Parameters:
input - The crafting recipe
func - The script
Throws:
net.minecraft.src.customstuff.CustomStuffException

addRecipe

public void addRecipe(java.lang.String input,
                      java.lang.String script,
                      java.lang.String craftingname)
               throws net.minecraft.src.customstuff.CustomStuffException
Adds a crafting recipe for a specific crafting table with a script

Parameters:
input - The recipe
script - The script
craftingname - The name of the crafting GUI
Throws:
net.minecraft.src.customstuff.CustomStuffException

addShapelessRecipe

public void addShapelessRecipe(java.lang.String input)
                        throws net.minecraft.src.customstuff.CustomStuffException
Adds a shapeless crafting recipe

Parameters:
input - The crafting recipe
Throws:
net.minecraft.src.customstuff.CustomStuffException

addShapelessRecipe

public void addShapelessRecipe(java.lang.String input,
                               java.lang.String func)
                        throws net.minecraft.src.customstuff.CustomStuffException
Adds a shapeless crafting recipe with a script that is called when this recipe is used

Parameters:
input - The crafting recipe
func - The script
Throws:
net.minecraft.src.customstuff.CustomStuffException

addShapelessRecipe

public void addShapelessRecipe(java.lang.String input,
                               java.lang.String func,
                               java.lang.String craftingname)
                        throws net.minecraft.src.customstuff.CustomStuffException
Adds a shapeless crafting recipe for a specific crafting table with a script

Parameters:
input - The recipe
func - The script
craftingname - The name of the crafting GUI
Throws:
net.minecraft.src.customstuff.CustomStuffException

removeRecipe

public void removeRecipe(java.lang.String input)
                  throws net.minecraft.src.customstuff.CustomStuffException
Removes a crafting recipe

Parameters:
input - The recipe
Throws:
net.minecraft.src.customstuff.CustomStuffException

removeRecipe

public void removeRecipe(java.lang.String input,
                         java.lang.String craftingname)
                  throws net.minecraft.src.customstuff.CustomStuffException
Removes a crafting recipe from a specific crafting table

Parameters:
input - The recipe
craftingname - The name of the crafting GUI
Throws:
net.minecraft.src.customstuff.CustomStuffException

removeShapelessRecipe

public void removeShapelessRecipe(java.lang.String input)
                           throws net.minecraft.src.customstuff.CustomStuffException
Removes a shapeless recipe

Parameters:
input - The recipe
Throws:
net.minecraft.src.customstuff.CustomStuffException

removeShapelessRecipe

public void removeShapelessRecipe(java.lang.String input,
                                  java.lang.String craftingname)
                           throws net.minecraft.src.customstuff.CustomStuffException
Removes a shapeless recipe from a specific craftingname

Parameters:
input - The recipe
craftingname - The name of the crafting GUI
Throws:
net.minecraft.src.customstuff.CustomStuffException